// 输入数字1-7代表彩虹颜色（红橙黄绿蓝靛紫），输出对应颜色名称，输入错误显示"无效宝石"。

#include <iostream>
using namespace std;

int main() {
    int num;
    cout << "输入宝石编号(1-7)：";
    cin >> num;
    
    switch(num) {
        case 1: cout << "红色"; break;
        case 2: cout << "橙色"; break;
        case 3: cout << "黄色"; break;
        case 4: cout << "绿色"; break;
        case 5: cout << "蓝色"; break;
        case 6: cout << "靛色"; break;
        case 7: cout << "紫色"; break;
        default: cout << "无效宝石";
    }
    return 0;
}